import _fetch from "api_xukaiyu/fetch";
/**
 * 保存或更新记录
 * @param { Object } data 请求参数
 * {
 *   instructions undefined
 *   limitValue undefined
 *   minAmount undefined
 *   gmtModified undefined
 *   validType undefined
 *   cardName undefined
 *   keywords undefined
 *   modifier undefined
 *   couponRatio undefined
 *   overdueReminderTime undefined
 *   isDeleted undefined
 *   id undefined
 *   stock undefined
 *   validDeadline undefined
 *   firstOrderLimit undefined
 *   isOverdueReminder undefined
 *   amount undefined
 *   creator undefined
 *   validStartTime undefined
 *   cardType undefined
 *   gmtCreate undefined
 *   limitType undefined
 *   tradeState undefined
 *   validUnit undefined
 *   warnMinStock undefined
 *   validTime undefined
 *   seckillLimit undefined
 * }
 */
export function update(data) {
  return _fetch({
    url: "backend/coupon/Tpl/update",
    method: "POST",
    data: data,
    headers: {}
  });
}
/**
 * 删除记录
 * @param { Object } data 请求参数
 * {
 *   id undefined
 * }
 */
export function deleteTpl(data) {
  return _fetch({
    url: "backend/coupon/Tpl/deleteTpl",
    method: "POST",
    data: data,
    headers: {}
  });
}
/**
 * 批量删除记录
 * @param { Object } data 请求参数
 * {
 *   ids undefined
 * }
 */
export function batchDelete(data) {
  return _fetch({
    url: "backend/coupon/Tpl/batchDelete",
    method: "POST",
    data: data,
    headers: {}
  });
}
/**
 * 查询一条记录
 * @param { Object } data 请求参数
 * {
 *   id undefined
 * }
 */
export function get_one(data) {
  return _fetch({
    url: "backend/coupon/Tpl/get_one",
    method: "POST",
    data: data,
    headers: {}
  });
}
/**
 * 查询列表
 * @param { Object } data 请求参数
 * {
 *   instructions undefined
 *   limitValue undefined
 *   minAmount undefined
 *   gmtModified undefined
 *   validType undefined
 *   cardName undefined
 *   keywords undefined
 *   modifier undefined
 *   couponRatio undefined
 *   overdueReminderTime undefined
 *   isDeleted undefined
 *   id undefined
 *   stock undefined
 *   validDeadline undefined
 *   firstOrderLimit undefined
 *   isOverdueReminder undefined
 *   amount undefined
 *   creator undefined
 *   validStartTime undefined
 *   cardType undefined
 *   gmtCreate undefined
 *   limitType undefined
 *   tradeState undefined
 *   validUnit undefined
 *   warnMinStock undefined
 *   validTime undefined
 *   seckillLimit undefined
 * }
 * @responses { Object } 返回参数
 * {
 *   total undefined
 *   queryStartTime undefined
 *   pageSize undefined
 *   page undefined
 *   queryEndTime undefined
 * }
 */
export function query_list(data) {
  return _fetch({
    url: "backend/coupon/Tpl/query_list",
    method: "POST",
    data: data,
    headers: {}
  });
}